package com.example.common.msg;

/**
 * 自定义异常信息枚举
 * @author hutu
 * @date 2018/6/26 16:27
 */
public enum ErrorMsgEnum {

    NULL_POINTER_EXCEPTION(10004,"空指针异常"),
    TOKEN_IS_INVALID(10003,"token无效"),
    PASSWORD_ERROR(10002,"密码错误"),
    USERNAME_NOT_EXIST(10001,"用户名不存在"),

    INTERNAL_SERVER_ERROR(500,"后台系统错误"),
    SERVER_BUSY(402,"系统繁忙"),
    UNAUTHORIZED(401,"未授权");
    public int code;
    public String desc;
    ErrorMsgEnum(int code,String desc){
        this.code = code;
        this.desc = desc;
    }
}
